package com.ssy.lingxi.platform.template.service.model.dto.adorn;

import com.ssy.lingxi.platform.template.service.entity.adorn.Advert;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 保存广告 - DTO
 * @author fhj
 * @date 2020/10/17
 * @version 2.0.0
 */
@Data
public class SaveAdvertDTO {

    @NotNull(message = "模板ID不能为空")
    @ApiModelProperty(value = "模板ID")
    private Long templateId;

    @NotNull(message = "广告类型不能为空")
    @ApiModelProperty(value = "广告类型: 1.一号广告 2.二号广告 3.三号广告 4.四号广告")
    private Integer type;

    @NotEmpty(message = "广告对象集合不能为空")
    @ApiModelProperty(value = "广告对象集合")
    private List<Advert> adverts;

    @ApiModelProperty(value = "品类ID 当广告类型为三号广告得时候品类ID不能为空")
    private Long categoryId;
}
